<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>添加商品</title>
</head>
<body>
<h2> 添加商品</h2>

<form action="/product" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <th>名字</th>
            <td><input name="name"></td>
        </tr>

        <tr>
            <th>主图片</th>
            <td><input type="file" name="file" ></td>
        </tr>


        <tr>
            <th>子图片</th>
            <td><input type="file" name="files" ></td>
            <td><input type="file" name="files"></td>
        </tr>

        <tr>
            <th></th>
            <td><input type="submit" value="提交"></td>
        </tr>
    </table>
</form>

<img src="http://image.localhost/product/974444b9b7db4e78ab9e14b28d10fa26.jpg" alt="test">
</body>
</html>
